#!/bin/sh

USERNAME="root"
echo "Enter your ROOT password here: "
read PASSWORD

mysql -u$USERNAME -p$PASSWORD < create_hibernate_performance_example.sql
echo "Create hibernate_performance_example schema successfully."

mysql -u$USERNAME -p$PASSWORD hibernate_performance_example < import_hibernate_performance_example.sql
echo "Import columns and data of hibernate_performance_example schema successfully."

echo "Import successfully!"
